// utils/pay.js.js

const wxPay = (payParams) => {
  return new Promise(function(resolve, reject) {
    wx.requestPayment({
      ...payParams,
      success: function(res) {
        return reslove(res)
      },
      fail: function(e) {
        return reject(e)
      }
    })
  })

}

module.exports = {
  wxPay
}